package com.syni.mdd.sjb.common.component.mybatis.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 企业微信社群，个人
 * </p>
 *
 * @author lcc
 * @since 2020-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class WxCommunityPerson implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 记录类型，1：群，2：个人
     */
    private Integer type;

    /**
     * 群名称（个人名称）
     */
    private String mainName;

    /**
     * 群头像
     */
    private String icon;

    /**
     * 隶属商户id
     */
    private Integer userId;

    /**
     * 群主的名称
     */
    private String groupLeader;

    /**
     * 群主的头像
     */
    private String groupLeaderHeadImg;

    /**
     * 来源
     */
    private String source;

    /**
     * 群用户数
     */
    private Integer userNum;

    /**
     * 置顶
     */
    private Integer orderNum;

    /**
     * 群的创建时间
     */
    private LocalDateTime createTime;


    public static final String ID = "id";

    public static final String TYPE = "type";

    public static final String NAME = "name";

    public static final String OWNER = "owner";

    public static final String SOURCE = "source";

    public static final String USER_NUM = "user_num";

    public static final String ORDER_NUM = "order_num";

    public static final String CREATE_TIME = "create_time";

    public static final String USER_ID = "user_id";

}
